<template>
  <div v-if="type==='order' && trackType === 1 && ![30, 40].includes(status) && value">
    {{value.warning && value.warning.message || '--'}}
  </div>
  <div v-else-if="type==='waybill' && trackType === 1 && ![40, 50].includes(status) && value">
    {{value}}
  </div>
  <div v-else>--</div>
</template>

<script>
export default {
  name: 'EarlyWarning',
  props: {
    value: [String, Object],
    status: Number,
    trackType: Number,
    type: String
  }
}
</script>